<?php

namespace Orqlog\Yacampaign\Domain\Model\Impl;

use Orqlog\Yacampaign\Domain\Model\EntityInterface;

abstract class AbstractEntity implements EntityInterface
{
    private $id;

    public function setId(int $identifier): void
    {
        $this->id = $identifier;
    }

    /** 
     * The encity's id could be null if it is newly created 
     */
    public function getId(): ?int
    {
        return $this->id;
    }
}